<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>招聘信息管理</title>
<link rel="stylesheet" href="/resources/css/admin/stuguanli.css">
</head>
<body>
	<div class="header">
		<div class="box1">
			<div class="box2">招聘信息管理</div>
			<div class="box3"><a href="index">返回首页</a></div>
		</div>
	</div>
	<div class="body">
		
		<div>
			<a href="addrecruit"><div class="addstu">发布招聘信息</div></a>
			<table border="1">
				<tr>
					<th style="width:267px;">公司名</th>
					<th style="width:267px;">招聘人数</th>
					<th style="width:267px;">职位</th>
					<th style="width:267px;">操作</th>
				</tr>
				<c:choose>
					<c:when test="${not empty recruit }">
						<c:forEach items="${recruit.list}" var="recruit">
							<tr>
								<td style="width:267px; text-align: center;">${recruit.reCompanyName}</td>
								<td style="width:267px; text-align: center;">${recruit.reRecruitment}</td>
								<td style="width:267px; text-align: center;">${recruit.rePositiontype}</td>
								<td style="width:267px; text-align: center;"> <p><a href="xqrecruit?id=${recruit.reId}">详情</a></p><p><a href="deleteByPrimaryKey?id=${recruit.reId}">删除</a></p></td>
							</tr>
						</c:forEach>
					</c:when>
				</c:choose>
			</table>
			
			<div class="page">
				<ul class="pageinfo">
					<a href="Recruit?page=${recruit.pageNum-1}">
						<li class="top_under"> 
							上一页
						</li>
					</a>
					<c:forEach begin="1" end="${recruit.pages}" var="pageNum">
						<a href="Recruit?page=${pageNum}"><li class="num">${pageNum}</li></a>
					</c:forEach>
				
					<a href="Recruit?page=${recruit.pageNum+1}">
						<li class="top_under"> 
							下一页
						</li>
					</a>
					
				</ul>
			</div>
			
			
			
		</div>
		
	</div>
</body>
</html>